home *** CD-ROM | disk | FTP | other *** search
/ Beginning Mac Programming / Beginning Mac Programming.bin / Open Me for REALbasic 3 / REALbasic 3.2 / Example Projects / Techniques / Examples by Joe Strout / QD3D Demo2 / QD3D Demo 2 READ ME < prev    next >
Text File  |  2000-04-17  |  3KB  |  30 lines

  1. QD3D Demo 2
  2. ===========
  3.  
  4. This project demonstrates accessing the QuickDraw 3D library from REALbasic.  It is an extension of QD3D Demo 1, and adds a couple of even higher-level classes (R3Canvas and R3Object), with an eye towards the sort of operations you'd need for a 3D game.
  5.  
  6. Functionality:
  7. You can load 3D models in "3DMF" format.  Each model should be on the order of 200 units high or so (two appropriate sample models are included).  You can then "drive" this model around using the arrow keys, or apply pitch/yaw/roll via GUI controls.  You can also choose to have the camera track the most recently loaded model in either first-person or third-person view, or leave the camera position stationary.  There is currently no background image, so a first-person view is pretty useless until you've loaded several models.
  8.  
  9. Compatibility:
  10. This code has been tested with REALbasic 2.1.  It may work on earlier versions of RB, but it will *not* work on 2.0.2 or earlier because of changes to the project file format.  It will not currently work under Windows, though it should be possible to make it do so without too much work.
  11.  
  12. About the Models:
  13. The humanoid is the BetaMan model, adapted by yours truly from a model called "AlphaMan" by Todd DeMelle (Ejwize@aol.com).  It was made using Meshwork [1].  The cube is just a green cube with "REALbasic" pasted on the side; this was also made with Meshwork.
  14.  
  15. About QuickDraw 3D:
  16. QuickDraw 3D (abbreviated QD3D) is a high-level 3D library by Apple Computer.  It is widely reknowned for a very clean, powerful design.  In 1999, Apple decided to drop QD3D, and it will not be present in Mac OS X and beyond.  However, it is now being re-implemented as an open-source project called Quesa [2].  The Quesa team has already rewritten most of QD3D, with the remaining functions to be finished in the next few months.  Moreover, Quesa is even better than QD3D, not least because it's more portable: it already runs on MacOS, Windows, Linux, and BeOS, and additional platforms could be easily added.  Quesa, like QD3D, uses a plug-in rendering architecture; currently the Mac version renders via OpenGL, but if OpenGL goes away (yes, this could happen), Quesa will simply use a different plug-in renderer.  So writing for QD3D/Quesa maximizes both the portability and the longevity of your code.
  17.  
  18. Programming in Quesa/QD3D:
  19. See the online QD3D book [3].  This is a little dense, but really does contain almost all the information you need to program with QD3D (or, equivalently, Quesa).  The demo code gives you many examples of how to translate the QD3D functions into REALbasic code.
  20.  
  21. For more information:
  22. See my REALbasic code page [4].  Or write to me (Joe Strout) at <joe@strout.net>.
  23.  
  24.  
  25. ---
  26. [1] http://codenautics.com/meshwork
  27. [2] http://www.quesa.org
  28. [3] http://developer.apple.com/techpubs/quicktime/qtdevdocs/QD3D/qd3d_book.htm
  29. [4] http://strout.net/info/coding/rb/
  30.